package com.ruoyi.system.feign.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class FeignObjectResult<T> {
    private Integer code;
    private String msg;
    private T data;

    public boolean isSuccess() {
        return code == 200;
    }
}
